import { request } from '@/utils'

export function list(data) {
  return request({
    url: `/customerManagement/selectPage`,
    method: 'post',
    data,
  })
}

export function listAll(data) {
  return request({
    url: `/customerManagement/selectCustomerList`,
    method: 'post',
    data,
  })
}

export function info(params) {
  return request({
    url: `/customerManagement/selectInfoById`,
    method: 'get',
    params,
  })
}

export function add(data) {
  return request({
    url: `/customerManagement/add`,
    method: 'post',
    data,
  })
}

export function edit(data) {
  return request({
    url: `/customerManagement/update`,
    method: 'put',
    data,
  })
}

export function del(params) {
  return request({
    url: `/customerManagement/delete`,
    method: 'delete',
    params,
  })
}

export function contactorList(data) {
  return request({
    url: `/contactor/selectContactorList`,
    method: 'post',
    data,
  })
}
